﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace wlm.wsx.src.wlm.Newwsx
{
    class OperatorBitAnd:OperatorBase
    {

        public override double OnCalculate(double[] operands)
        {
            return double.NaN;
        }

        public override bool OnCalculate(int[] operands)
        {
            if (operands == null || operands.Length != 2)
                return false;

            int op = operands[0] & operands[1];

            return Convert.ToBoolean(op);
        }

     }
}
